<%-- 
    Document   : sessionCreator
    Created on : Nov 19, 2012, 10:08:25 PM
    Author     : mruiz
--%>

<%@page import="java.util.List"%>





    <form method="post" action="addUser.jsp">
        <fieldset>
            <legend>Add User Panel</legend>
            <label>Enter Username to Add in List</label>
            <input type="text" name="user"/>
            <input type="submit" value="Add User" class="btn btn-success"/>
            <a href="destroySession.jsp" class="btn btn-danger">Destroy this session</a>
    </form>

    <div id="user_list">

        <%
            List<String> users = (List<String>) session.getAttribute("users");
            for (int i = 0; null != users && i < users.size(); i++) {
                out.println("<br/>" + users.get(i));
            }
        %>
    </div>




